package main

const num int = 10

func testFor() {
	var sum1 int = 0
	for i:=1; i<=num;i++ {
		sum1 += i
	}

	println("sum1 = ", sum1)

	var sum2 int = 0
	var j int = 0
	for j <= 10 {
		sum2 += j
		j++
	}
	println("sum2 = ", sum2)

	for {
		println("测试死循环1")
		break
	}

	for true {
		println("测试死循环2")
		break
	}
}

// func main() {
// 	testFor()
// }